package com.bw.task.api;

import com.bw.task.bean.ImgBean;
import com.bw.task.bean.MoneyBean;
import com.bw.task.bean.PopupWindioBean;
import com.bw.task.bean.UserBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface Api {
    //注册
    @POST
    Observable<UserBean> register(@Url String url);
    //登录
    @POST
    Observable<UserBean> loginer(@Url String url);
    //充值
    @POST
    Observable<MoneyBean> money(@Url String url);
    //Img串
    @GET
    Observable<ImgBean> get(@Url String url);
    //礼物
    @GET("gift/getAll")
    Observable<PopupWindioBean> getGifit();

}
